Fixes for iOS error "QuotaExceededError: DOM Exception 22: An attempt was made to add something to storage that exceeded the quota."