Fix for private browsing

Mobile safari failed in private browsing mode. Simple try/catch for
storing.