Update client.template.js

It will be right, because There may be cases when client does not connected to socket but he trying to conect to the room