IDEA-117127 Editor: Throwable on Select word at caret inside plain text
(cherry picked from commit 2e3a0d8)