Fix join message

If the peer map is empty, create it correctly before sending the join
message,