Fix for the bug in btree that was not handling removing from a tree which would result in the tree root becoming a single leaf node.