Update KafkaSource.java

Key is not always defined by a producer. In case of null key, this code blows up.