This change fixes a bug - for a very laggy gcylc (e.g. one with an expanded LED view with hundreds and hundreds of tasks), closing the text view can cause a bug where the `self.ttreeview` model is temporarily None. This handles it gracefully.