Handle the case when localstorage is full by logging a warning. Fixes #6