core: fix constructing the IP4Config.Nameservers property

Closed hexchain requested to merge hexchain/NetworkManager:fix-ip4config-nameservers-prop into main

Similar to !1539 (merged), but for the D-Bus property.

Merge request reports