[xml mode] Mark <menuitem> as self-closing tag

Closes #2810