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

Fixes #495 (I think)