Fix: InvalidOperationException, GetTextViewLineContainingBufferPosition called after the view is closed.