fix toplevel move/reorder in the tree

This allows reordering of tree nodes at the toplevel (e.g. top level items of a menu) when you don't show the root node