Fixes call to validate elasticsearch variables

Fixes validation of elasticsearch config in Rakefile