fix bug 875780 - Prevent empty docs from bombing requests
Merge pull request #1129 from darkwing/empty-document-sections-875780

fix bug 875780 - Prevent empty docs from bombing requests