Sync fails to save sets and maps of non-openmrs objects if the owning
object has no updates - SYNC-307

Cleaned up the code - SYNC-307