[Fix #7784] Browser keeps crashing when navigating the tree