Handle cases where device has empty hostname