This is the (stderr) output of the htmldoc command without the htmldoc_append parameters: If you see no errors here please check your htmldoc_append parameters too.
HTMLDOC(4518) INFO: HTMLDOC 1.8.25 starting in CGI mode.
HTMLDOC(4518) INFO: TMPDIR is "(null)"
Can't open display: