Handle exception when IE has too tight security settings on window.localStorage

In IE, the application crashes when the security settings don't allow window.localStorage to be accessed