Added in a failover if localStorage is full, it attempts to clear out the cache and then re-save the current item.