Changed registerObject to check if parent is set before registering the service with the PZH.
Changed registerObject to check if parent is set before registering the service with the PZH.

Jira issue: WP-9

webinos/Webinos-Platform,krishnabangalore/Webinos-Platform,krishnabangalore/Webinos-Platform,hansmy/Webinos-Platform,krishnabangalore/Webinos-Platform,hansmy/Webinos-Platform,hansmy/Webinos-Platform,webinos/Webinos-Platform,krishnabangalore/Webinos-Platform,hansmy/Webinos-Platform,hansmy/Webinos-Platform,krishnabangalore/Webinos-Platform,webinos/Webinos-Platform,krishnabangalore/Webinos-Platform,webinos/Webinos-Platform,webinos/Webinos-Platform,krishnabangalore/Webinos-Platform,krishnabangalore/Webinos-Platform,hansmy/Webinos-Platform,webinos/Webinos-Platform,hansmy/Webinos-Platform,webinos/Webinos-Platform,hansmy/Webinos-Platform,krishnabangalore/Webinos-Platform,webinos/Webinos-Platform,webinos/Webinos-Platform,hansmy/Webinos-Platform