Fixed a bug where if localstorage exists but is disabled in the browser which causes window.localstorage to be null it throws an error.
Merge pull request #47 from bdoooh/localstoragefix

Handle the case where LocalStorage is explicitly disabled in the browser, not just not present.