pouchdb/pouchdb — pull request #2885 by ahizzle (2014-10-17 19:51:59+00:00)
Title: Don't bail just because db._docCountQueue.docCount is -1

There's a condition when the queue length is non-zero, but the docCount is still -1 -- in that case applyNextDocCountDelta() just returns silently and the adapter never finishes initializing itself because its callback never fires. This is just a quicky hack-fix, I'm not familiar enough with all the parts to know what other ramifications this might have.