make localStorage access more crash-proof. don't report localStorage errors.