Cordova alert will bause a crash if passed in something else than a string