Fix issue with missing templateDocumentPart

_templateDocumentPart was not getting set if the component template didn't have any object.