BZ-12750: Check is localStorage is available.