Fully display the tree view after repopulating, which creates handles for all nodes and no problems occur when deleting nodes. (#1277)