Fix restorePrivateDnsSetting with null hostnames am: 7fd2b373ff

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/14911838

Change-Id: If1e643887b191942217d5589f933bd924c0ff849