codemix/YiiElasticSearch — pull request #28 by urmaul (2014-09-22 11:23:10+00:00)
Title: Condition isset($msg->error) added

Trying to fix php error "Undefined property: stdClass::$error" when there is json response but there is no "error" field.
This scenario happens when we're trying to delete a non-existent record (like when SearchableBehavior is added after document is created).

```json
> http DELETE 'http://localhost:9200/mywebapplication/minute/1'
HTTP/1.1 404 Not Found
Content-Length: 83
Content-Type: application/json; charset=UTF-8

{
"_id": "1",
"_index": "mywebapplication",
"_type": "minute",
"_version": 2,
"found": false
}
```

It's better to ignore 404 errors when deleting but I'm not sure how to do this.