HELP-12738: check for empty doc id