Removed unnecessary mkIf in elasticserach

The whole block is already wrapped in cfg.enable and this breaks some things.