window.localStorage can be null in IE11

That gives a error, when the 'getItem' function is accessed.

'localStorage' in window gives true, but window.localStorage is null

Change-Id: I794cd9c00b03c357b33a45a2e47c70f962553519