ensure documentation_to_html returns a string
[fixes #77117008]
resolves #294