Fixed RegEx error when callbackId is nil

Hi, my barebones cordova/ionic app was terminating with the PushPlugin.  I have no idea if this fix is appropriate.  I submitted details of the error here:

https://issues.apache.org/jira/browse/CB-6897