Bugfix in CreateDocEntryForProperty.