Making the function getHTMLBodyContents($htmldoc) more robust
by adding a check to see if DOMDocument class is available since
this function is dependant of that class. If the class is not available,
instead the $htmldoc will be returned with a warning in the form of
a html style comment appended.