Fixed an issue where the local storage hadn't already been created or a model hadn't already been added.
Merge pull request #4 from bjarkehs/fix_initializing_localStorage

Fix to handle when localStorage hasn't been initialized