Speculative fix of a crash in RevTree::compact()

Fixes couchbase/couchbase-lite-ios#495 (I think)