[xml-fold addon] Make doMatchTags also return info about self-closing tags

This way, the matchtags addon highlights them the same as normal tags.

Closes #2737