[TextEditor] Added dispose check for the text editor in bracket match
thread