Fix for problem of collapsing root node in tree widget.