handle the condition when all TopicAndPartitions have no more messages to fetch