fix: Add try/catch around DOM storage access.

This ensures exceptions are not thrown if cookies are disabled.

fixes #4