corrected exception handling for missing ES config
Merge pull request #1170 from twobraids/es_emergency_prod_patch

corrected exception handling for missing ES config