handle empty results for document frequency data