(#2543) - fix call stack exceeded
(pouchdb/pouchdb#2543) - don't leak arguments object