Should not happen again.
Bypass editor.getSelection when there's no mode.