Fixed bug related to not accessing primitive value when populating managed objects on sync