Thanks for the PR. I see where things are going wrong.  We're setting name to nil (host/managed.rb - clone method).

I think something like this might be clearer: 

    return name if name.blank?
    name.include?('.') ? name : "#{name}.#{domain}"

But maybe @domcleal can weigh in :-)