Removed unnecessary mkIf

The whole block is already wrapped in cfg.enable and this breaks some things.
Merge pull request #1172 from zefhemel/patch-1

Removed unnecessary mkIf in elasticserach