[950189] TreeWidget modifications to support unsorted tree and remove emptyTextNode