hostname.rb: allow restore on a blank config

should be a graceful no-op