Don't corrupt nodes when attempting to remove a child from a node which is not its parent.