More markup fixes to support rendering from simplexml

Empty elements are truncated to void tags: <th/>