checking for session storage and localstorage

We check if there's any storage supported before processing the screen
to avoid errors.