Add missing reference to this

I couldn’t figure out how to add a test for this, sorry. The PouchDB callback contains a reference to `that` which is never set in the containing closure.