Improve checking of the template and record length.
Improve checking of the template and record length.

Aloomaio/logstash-kafka,opentable/logstash-kafka,tinglinux/logstash-kafka,tinglinux/logstash-kafka,joekiller/logstash-kafka,Aloomaio/logstash-kafka,joekiller/logstash-kafka,opentable/logstash-kafka