Fix checks in logstash module