Update elasticsearch.rb

If the host is not intialized it will throw an exception on line 380.

This fixes #33
typo for `nil?`