Fix an issue with testing for indexeddb in safari in an iframe.