Issue edina/botanitours#4 prevent error using http cordova plugin