Fix #811 by returning an empty string when there is no document content.
Merge pull request #813 from DDevine/lxmlfix

Fix #811 by returning an empty string when there is no document content.