Fix detection and operation of Kafka plugin

Change-Id: I6d14ddcf3e103b8bc66d3113466c0685fcb92bdd