[closetag addon] Another corner case when typing in attribute

Issue #1916