[closetag addon] Fix bug in self-closing tags typed directly in front of word

Closes #1349