remove extra lines from returned <docid/> block. https://projects.ecoinformatics.org/ecoinfo/issues/5932
remove extra lines from returned <docid/> block. https://projects.ecoinformatics.org/ecoinfo/issues/5932