This fixes a crash when editing a file where e.g. PropertyChanges had an invalid target property. Reviewed-by: Lasse Holmstedt