Update for NullPointerException as per https://github.com/Red-Folder/Cordova-Plugin-BackgroundService/issues/7