Fix ES health check and nonexistent index handling.