fix: Add try/catch around DOM storage access.

This ensures exceptions are not thrown if cookies are disabled.

fixes #4
Merge pull request #5 from shane-tomlinson/issue-4-cookies-disabled

fix: Add try/catch around DOM storage access.