Fix checkmark on current entry for InsetSeparator context menu

The code supposed to do that contained a typo and was not completely correct.
Select word on double click even when at boundary

Now when double clicking on a boundary of a word, the
word is selected. This also causes single-letter words
to now be selected (fixes #9159).
On Linux show in crash message box the backtrace