Fixed Issue #32

Issue #32: db.on('error') doesnt catch 'not found index' DOMExceptions.

The issue was generic to any "transactionless" error or exception.
Previous unit tests for db.on('error') only tested transactional errors.