[3.x] Fix index being out of sync in Node::remove_child
#77483
+40
−0
Node::remove_child
#77483