fix detection if dhcp hostname is disabled (BNC#787535#c8)