Added localStorage quota check