make sure null is returned on bad lookups

Adds test, fixes broken IndexDB implementation.

Closes https://github.com/freedomjs/freedom/issues/176