fix bug 875780 - Prevent empty docs from bombing requests