[closetag addon] Prevent action in another corner case

(When slicing the part before the cursor from the tagname causes it to be empty.)

Closes #1998