tree_node_merge(): One of merged nodes wouldn't have parent reset properly