Don't run where indexedDB is not available

For example iOS - this was breaking my phonegap app
Merge branch 'refs/heads/fix-ios' into working