KAFKA-20598 Prevent polling unassigned consumer during ConsumerTask shutdown (#22328)