Fix a segfault with the calls that need to register with the remote gateway (eg:...