Handle cases where device has no hostname in lease file