Repair incorrect node refresh between different trees. Fixes #86904