[LHTR] Fixed parsing self-closing tags.
[Azoth] Close conf on /leave as well, fixes #1510.