fix bug 875780 - Prevent empty docs from bombing requests

To test:

1.  Create a document with just an HTML comment as content: "<!-- -->"
2.  Use the WYSIWYG title lookup to find the doc
3.  It wont bomb!  Yay!