Checks before writing to window.IDBTransaction