reset focus when Tree's focused node is destroyed, fixes #6236