Added fix for Private mode in Safari

Running loglevel in Safari with Private mode (which I often do for testing) creates a DOM 22 Exception. I assume this is because you can't use local storage in Private Mode.

The added code will cause the exception in the `localStorageAvailable` check. It's not terribly elegant and seems strange *before* running the checks for the `localStorage` object, but it does work.