Added a schema validation to ensure message key is not empty when dispatching by key in Kafka and Pulsar Producer bridges.