to handle the results when aggregate query does not return any results