I'm pretty sure the MainDocumentPart argument you pass in the constructor of HtmlConverter is null.
Because the Document and the Body is created on the fly if they don't exist.
Because the Document and the Body is created on the fly if they don't exist.