[closetag addon] Work better with htmlmixed mode

It now closes script and style tags when the slash is typed

Closes #2797