NetworkMenu: fix regression for VPN connections

Fix regression from e898e2991087e7ccb17bc17f2eedd99a1f41152a,
the code was moved from a method to a global function, but one
call site was not updated.

https://bugzilla.gnome.org/show_bug.cgi?id=710019