Fixed hosts.create issue

FATAL: NoMethodError: undefined method `[]=' for nil:NilClass