Fixes `QUOTA_EXCEEDED_ERR` error in private Safari window.
When Web Storage is unsupported, still provide a setItem and getItem function