Handle SecurityException under ios7 private browse

Current versions of the i0S7 throw a SecurityException when attempting to read
window.localStorage or window.sessionStorage under private browsing.

Protect from exceptions there and attempt to create a stub localStorage
implementation.