Fix issue #76
Wrap the check for localStorage/StorageEvent in a try/catch because
firefox throws an exception when accessing those properties in certain
cases due to bug https://bugzilla.mozilla.org/show_bug.cgi?id=748620