nsXMLContentSerializer::CheckElementEnd so that we can properly determine whether it has children. This resolves #1221