Fixed edge case where an element that should always be paired with a closing element can sometimes be wrongly generated if the content is a zero length string