Fixes 'connectNetwork' and 'disconnectNetwork' when there is only one network configured.