Fix a bug in the tree-view control where the root item was being incorrectly collapsed.