handle null pointer exception when app restarted
Merge branch 'master' of github.com:benismobile/aerogear-geo-cordova
merge android null pointer fix with ios changes