Fix "removePending: sequence %lld not in set" warnings

Manually copied over from CouchbaseLite commit 8ee5c3d