#863 - need to add a null check in the case where the entity of the persistent package does not contain the sort field property (because it is marked as HIDDEN_ALL) on an actual instance of the toMany collection