When reading from localStorage, treat security exceptions like absent values. This supports running in third-party contexts when cross-origin cookies are blocked by the browser.