cordova 3.6 fix

I can't take credit for this, it is the fix provided by @orbitaloop

https://github.com/katzer/cordova-plugin-local-notifications/issues/281

I made the pull request as it was affecting me too