[TextEditor] Fixed crash related to tooltip providers.