[Android] Issues with Android 4.0+ and Cordova

Hey Guys,

I was having an issue where Android 4.0+ devices were not correctly falling back to prompt based communication due to this being undefined. I updated the method to improve the safety of this and now it's all working. Please accept my pull request :)