Another logic fix in CBLReplication

Fixes #24 some more.