Fix a failing test case with empty markdown input docs.

Probably as a result of an upgrade to a new Ubuntu version, the HTML
versions of blank Markdown docs started containing a boilerplate BODY
containing just an empty P tag. Added handling for this case.