CLOUDSTACK-3947: Fix similar issues related to getSyncObjType / getSyncObjId
(cherry picked from commit 5cfc69a7aa224fbf9c200a6066c56cd0d19174c7)