Fixes detection of local storage in the case where it is completely full.

https://github.com/pamelafox/lscache/issues/32
I suggest a function that checks for this, as we'd be able to re-use the same function later in the file.