fixes root removal handler in Tree.unsetKey() and Tree.unsetPath()