[closetag addon] Fix false positive close situation

Closes #1844