Change Connection check from ok to status

ES 1.0.0 removed the ok result from connection:

https://github.com/elasticsearch/elasticsearch/issues/4310?source=cc

Changed to check is the status array islet and equals 200.