Wrapping call to `indexeddb.deleteDatabase` in a try…catch

Wrapping call to `indexeddb.deleteDatabase` in a try…catch because it errors in some contexts (e.g. data URIs).