Add error handling for 404 ElasticSearch results