Update storage.js

added a null check for localStorage that throws more useful information than "localStorage is null!"