Quickfix for a really rare case when the combat simulation is done and the node that was added to the tree is exactly the end node.