source-pane: make GtkTextView a weak pointer to avoid extra cleanup.

Our dispose can be called multiple times and we need to handle the case
that the text view has been disposed.