fix elasticsearch setup failing on delete
[dev] allow empty catch statement in cs check