fix(ElasticSearchRepository): handle error case