All: Remove closing slash on empty elements

Closes #1159