Fixed segfault randomly generated in ConnectToBootstrapEndpoint.