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

Latest safari is throwing a security error when this check is done from an iframe.