Fixed issue with new devices. If the hostname is not set a new one will
be generated