(#2543) - test to reproduce

I'll write a PR to demonstrate that https://github.com/pouchdb/pouchdb-extend/pull/2 actually fixes this error.