Fix internal network being used if SSID is non-null but internal address is null