Trap localStorage exceptions when checking for support

One way to test this is to run Chrome and Firefox with cookies disabled, which also disables localStorage and sessionStorage by throwing an exception on any access attempt.

More information: http://www.w3.org/TR/webstorage/#the-localstorage-attribute