Fix critical error
Fix critical error

This fixes a mistake that block iOS from register device.

ibm-bluemix-mobile-services/bms-clientsdk-cordova-plugin-push,ibm-bluemix-mobile-services/bms-clientsdk-cordova-plugin-push,ibm-bluemix-mobile-services/bms-clientsdk-cordova-plugin-push