Nolocalstorage

Prevent visible exceptions from being thrown when window.localStorage and window.parent access is prohibited.