Fix issue when parsing a custom tag with no content.