fix: Hide the Firefox SecurityError exception when assigning a reference to localStorage.

See https://bugzilla.mozilla.org/show_bug.cgi?id=748620

fixes #3