Don't run where indexedDB is not available

For example iOS - this was breaking my phonegap app