Do smarter IndexedDB check (fix #150)

Check for IndexedDB the same way in both places.