Fixed a health check issue for Kafka Producer that could lead to loss of messages when the connection to Kafka's brokers were down.