Fix #9209

Regression from #9137. The problem was that the Latex completion code
might access an invalid index in the unicode string, if the previous
character from a `\\` was a multibyte character.
Merge pull request #9210 from JuliaLang/in/complete

Fix #9209