trying to access window.sessionStorage can throw SecurityError

In chrome if the `Block sites from setting any data` is turned on trying to access window.sessionStorage throws a SecurityError exception.