Try to more safely handle empty hostnames.

Test: as follows
    - built
    - flashed
    - booted
    - manual testing in modes: {off, opportunistic, strict}
    - system/netd/tests/runtests.sh
Bug: 74606156
Change-Id: I183e5de0ba77571fefd686ac0a9e53e6011722a4
1 file changed