[client] Fix a but that relay_id not set after clone.

This can lead to a crash problem when the server is not reachable.