Do smarter IndexedDB check (fix #150)
Merge pull request #156 from mozilla/fix-indexeddb-bug

Do smarter IndexedDB check (fix #150)