Fix #2319 In `Model::_postSaveRelatedRecords` add check whether value is object

See #2319