[firefoxos][CB-3202] wrap typeof operator inside a try/catch statement to avoid Cordova from aborting on Security Error on Firefox OS
Merge branch 'CB-3202' of https://github.com/rixrix/cordova-js into CB-3202