Prevent "Safari cannot open page..." error when the JS app is loaded inside Mobile Safari rather than a UIWebView.