Detect if localStorage is disabled and fail nicely