Fixing hasItem (IndexedDb)

- Makes sure that null is a valid data store value
- Adding tests for hasItem