KAFKA-10503: MockProducer doesn't throw ClassCastException when no partition for topic exists (#9309) Reviewer: Matthias J. Sax <matthias@confluent.io>