Fix some unsafe usage of ConnectToMasterServer(). Fixes #11364