In a node move, check that we are not moving an ancestor on a descendant

Without this check, when an ancestor is dragged onto a descendant, the whole tree vanishes.