Fix local storage in Safari private (localStorage object available but setItem method always throws quota exception).