Fix crash in tournaments when a non-participant attempts to challenge someone
Fix crash in tournaments when a non-participant attempts to challenge someone

TheManwithskills/New-boiler-test,KewlStatics/Showdown-Template,SkyeTheFemaleSylveon/Mudkip-Server,forbiddennightmare/Pokemon-Showdown-1,Parukia/Pokemon-Showdown,scotchkorean27/Pokemon-Showdown,cadaeic/Pokemon-Showdown,kupochu/Pokemon-Showdown,kuroscafe/Showdown-Boilerplate,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,yashagl/yash-showdown,Kill-The-Noise/BlakJack-Boilerplate,Stroke123/POKEMON,Chespin14/Custom-Platform-Pokemon-Showdown,Flareninja/Pokemon-Showdown-1,sama2/Viridian-Pokemon-Showdown,hayleysworld/serenity,FakeSloth/Infinite,HoeenKid/Pokemon-Showdown-Johto,forbiddennightmare/Pokemon-Showdown-1,DesoGit/TsunamiPS,Vacate/Pokemon-Showdown,Breakfastqueen/advanced,TheManwithskills/Server,MeliodasBH/Articuno-Land,Atwar/ServerClassroom,Mystifi/Exiled,Nineage/Origin,aakashrajput/Pokemon-Showdown,HoeenCoder/SpacialGaze,abulechu/Lumen-Pokemon-Showdown,TheManwithskills/Server-2,AWailOfATail/Pokemon-Showdown,ZeroParadox/BlastBurners,JennyPRO/Jenny,SerperiorBae/Bae-Showdown,EienSeiryuu/Pokemon-Showdown,zczd/enculer,TheFenderStory/Pokemon-Showdown,Irraquated/Showdown-Boilerplate,SerperiorBae/PokemonShowdown2,javi501/Lumen-Pokemon-Showdown,yashagl/yash-showdown,lFernanl/Pokemon-Showdown,InvalidDN/Pokemon-Showdown,arkanox/MistShowdown,Kokonoe-san/Glacia-PS,TogeSR/Lumen-Pokemon-Showdown,Git-Worm/City-PS,aakashrajput/Pokemon-Showdown,Neosweiss/Pokemon-Showdown,TheManwithskills/Creature-phil-boiler,Gold-Solox/Pokemon-Showdown,MasterFloat/Pokemon-Showdown,HoeenCoder/SpacialGaze,panpawn/Pokemon-Showdown,theodelhay/test,MayukhKundu/Technogear-Final,Bryan-0/Pokemon-Showdown,Kill-The-Noise/BlakJack-Boilerplate,Pikachuun/Pokemon-Showdown-SMCMDM,lFernanl/Lumen-Pokemon-Showdown,SilverTactic/Dragotica-Pokemon-Showdown,Adithya4Uberz/The-Tsunami-League,svivian/Pokemon-Showdown,yashagl/pokemon-showdown,EmmaKitty/Pokemon-Showdown,Lord-Haji/SpacialGaze,megaslowbro1/Showdown-Server-again,Kevinxzllz/PS-Openshift-Server,Pikachuun/Touhoumon-Showdown,SubZeroo99/Pokemon-Showdown,Psyientist/Showdown-Boilerplate,Flareninja/Lumen-Pokemon-Showdown,Lord-Haji/SpacialGaze,MayukhKundu/Technogear-Final,Pikachuun/Joimmon-Showdown,Articuno-I/Pokemon-Showdown,yashagl/pokemon-showdown,Evil-kun/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,gustavo515/final,Zarel/Pokemon-Showdown,piiiikachuuu/Pokemon-Showdown,JellalTheMage/Jellals-Server,Kokonoe-san/Glacia-PS,urkerab/Pokemon-Showdown,scotchkorean27/Pokemon-Showdown,BlazingAura/Showdown-Boilerplate,Atwar/server-epilogueleague.rhcloud.com,Firestatics/Omega-Alpha,Flareninja/Showdown-Boilerplate,QuiteQuiet/Pokemon-Showdown,Tesarand/Pokemon-Showdown,zek7rom/SpacialGaze,JellalTheMage/PS-,MayukhKundu/Pokemon-Domain,hayleysworld/serenityc9,Hidden-Mia/Roleplay-PS,abrulochp/Dropp-Pokemon-Showdown,TheManwithskills/Creature-phil-boiler,hayleysworld/harmonia,Tesarand/Pokemon-Showdown,SerperiorBae/Bae-Showdown,CreaturePhil/Pokemon-Showdown,svivian/Pokemon-Showdown,Checkinator/Pokemon-Showdown,Neosweiss/Pokemon-Showdown,Parukia/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,SerperiorBae/Bae-Showdown,yashagl/pokecommunity,JellalTheMage/PS-,Ridukuo/Test2,TheManwithskills/Server---Thermal,iFaZe/SliverX,SerperiorBae/BaeShowdown,Ecuacion/Pokemon-Showdown,RustServer/Pokemon-Showdown,Kevinxzllz/PS-Openshift-Server,comedianchameleon/test,gustavo515/test,arkanox/MistShowdown,sama2/Lumen-Pokemon-Showdown,Zarel/Pokemon-Showdown,Firestatics/Firestatics46,LustyAsh/EOS-Master,Ridukuo/Test2,Disaster-Area/Pokemon-Showdown,brettjbush/Pokemon-Showdown,JellalTheMage/Jellals-Server,SerperiorBae/Pokemon-Showdown-1,UniversalMan12/Universe-Server,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,Flareninja/Sora,Enigami/Pokemon-Showdown,MayukhKundu/Technogear,kuroscafe/Showdown-Boilerplate,Guernouille/Pokemon-Showdown,ehk12/coregit,CharizardtheFireMage/Showdown-Boilerplate,CharizardtheFireMage/Showdown-Boilerplate,Ecuacion/Lumen-Pokemon-Showdown,DB898/theregalias,TbirdClanWish/Pokemon-Showdown,UniversalMan12/Universe-Server,AvinashSwaminathan/lotus-v3,Sora-Server/Sora,SerperiorBae/Bae-Showdown-2,Pokemon-Devs/Pokemon-Showdown,k3naan/Pokemon-Showdown,TheFenderStory/Showdown-Boilerplate,BuzzyOG/Pokemon-Showdown,ScottehMax/Pokemon-Showdown,xCrystal/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,hayleysworld/Showdown-Boilerplate,AvinashSwaminathan/lotus-v2,xfix/Pokemon-Showdown,Disaster-Area/Pokemon-Showdown,SerperiorBae/BaeShowdown,Lord-Haji/SpacialGaze,Lauc1an/Perulink-Showdown,FakeSloth/wulu,Irraquated/Pokemon-Showdown,TheFenderStory/Showdown-Boilerplate,Zarel/Pokemon-Showdown,MayukhKundu/Technogear,ehk12/clone,DalleTest/Pokemon-Showdown,DesoGit/Tsunami_PS,AvinashSwaminathan/lotus,AustinXII/Pokemon-Showdown,kubetz/Pokemon-Showdown,PS-Spectral/Spectral,hayleysworld/serenityserver,Pikachuun/Pokemon-Showdown,Git-Worm/City-PS,miahjennatills/Pokemon-Showdown,abrulochp/Lumen-Pokemon-Showdown,panpawn/Gold-Server,johtooo/PS,bai2/Dropp,ZestOfLife/FestiveLife,jumbowhales/Pokemon-Showdown,BuzzyOG/Pokemon-Showdown,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,lAlejandro22/lolipoop,Gold-Solox/Pokemon-Showdown,jd4564/Pokemon-Showdown,ScottehMax/Pokemon-Showdown,Yggdrasil-League/Yggdrasil,DarkSuicune/Pokemon-Showdown,SSJGVegito007/Vegito-s-Server,TheManwithskills/Dusk--Showdown,iFaZe/SilverZ,megaslowbro1/Pokemon-Showdown,hayleysworld/Showdown-Boilerplate,TheManwithskills/COC,comedianchameleon/test,EmmaKitty/Pokemon-Showdown,sama2/Viridian-Pokemon-Showdown,SerperiorBae/Pokemon-Showdown,Flareninja/Pokemon-Showdown,PS-Spectral/Spectral,Firestatics/omega,Wando94/Spite,ShowdownHelper/Saffron,AustinXII/Pokemon-Showdown,DalleTest/Pokemon-Showdown,kubetz/Pokemon-Showdown,DesoGit/Tsunami_PS,sirDonovan/Pokemon-Showdown,ZeroParadox/ugh,ankailou/Pokemon-Showdown,brettjbush/Pokemon-Showdown,AnaRitaTorres/Pokemon-Showdown,Sora-League/Sora,SkyeTheFemaleSylveon/Mudkip-Server,Psyientist/Showdown-Boilerplate,Ridukuo/Test,HoeenCoder/SpacialGaze,k3naan/Pokemon-Showdown,Sora-Server/Sora,ankailou/Pokemon-Showdown,TheManwithskills/Server---Thermal,Nineage/Showdown-Boilerplate,Darkshadow6/PokeMoon-Creation,Pablo000/aaa,Kill-The-Noise/BlakJack-Boilerplate,SerperiorBae/Bae-Showdown-2,superman8900/Pokemon-Showdown,ehk12/bigbangtempclone,TheManwithskills/Server,QuiteQuiet/Pokemon-Showdown,Legendaryhades/Oblivion,LightningStormServer/Lightning-Storm,Irraquated/Pokemon-Showdown,MeliodasBH/boarhat,TheDiabolicGift/Showdown-Boilerplate,ehk12/coregit,Atwar/http-server-femalehq.rhcloud.com-80.psim.us-,SerperiorBae/Bae-Showdown-2,MayukhKundu/Mudkip-Server,gustavo515/final,HoeenCoder/SpacialGaze,urkerab/Pokemon-Showdown,Raina4uberz/Light-server,hayleysworld/serenityc9,Volcos/SpacialGaze,Breakfastqueen/advanced,TheManwithskills/DS,xfix/Pokemon-Showdown,SerperiorBae/BaeShowdown,DesoGit/TsunamiPS,TheManwithskills/COC,Nineage/Origin,ZeroParadox/ugh,Darkshadow6/PokeMoon-Creation,Breakfastqueen/advanced,SilverTactic/Pokemon-Showdown,Celecitia/Plux-Pokemon-Showdown,SerperiorBae/Pokemon-Showdown-1,hayleysworld/asdfasdf,Hidden-Mia/Roleplay-PS,panpawn/Gold-Server,panpawn/Pokemon-Showdown,lFernanl/Zero-Pokemon-Showdown,Evil-kun/Pokemon-Showdown,Irraquated/Pokemon-Showdown,TheManwithskills/serenity,KewlStatics/Shit,Pikachuun/Joimmon-Showdown,SkyeTheFemaleSylveon/Pokemon-Showdown,Zipzapadam/Server,asdfghjklohhnhn/Pokemon-Showdown,PrimalGallade45/Lumen-Pokemon-Showdown,SilverTactic/Pokemon-Showdown,Volcos/SpacialGaze,SolarisFox/Pokemon-Showdown,Ecuacion/Lumen-Pokemon-Showdown,Firestatics/Firestatics46,LightningStormServer/Lightning-Storm,sama2/Lumen-Pokemon-Showdown,ehk12/bigbangtempclone,Adithya4Uberz/The-Tsunami-League,azum4roll/Pokemon-Showdown,TheDiabolicGift/Lumen-Pokemon-Showdown,Legit99/Lightning-Storm-Server,TheManwithskills/serenity,ZestOfLife/PSserver,CreaturePhil/Showdown-Boilerplate,zczd/enculer,javi501/Lumen-Pokemon-Showdown,Alpha-Devs/Alpha-Server,SSJGVegito007/Vegito-s-Server,MayukhKundu/Pokemon-Domain,Syurra/Pokemon-Showdown,PrimalGallade45/Dropp-Pokemon-Showdown,CrestfallPS/Pokemon-Showdown,Wando94/Pokemon-Showdown,SerperiorBae/Pokemon-Showdown,xCrystal/Pokemon-Showdown,SilverTactic/Showdown-Boilerplate,Vacate/Pokemon-Showdown,DarkSuicune/Kakuja-2.0,catanatron/pokemon-rebalance,abulechu/Dropp-Pokemon-Showdown,Checkinator/Pokemon-Showdown,comedianchameleon/servertest1,KewlStatics/Alliance,psnsVGC/Wish-Server,superman8900/Pokemon-Showdown,svivian/Pokemon-Showdown,TogeSR/Lumen-Pokemon-Showdown,abrulochp/Lumen-Pokemon-Showdown,Ransei1/Alt,Elveman/RPCShowdownServer,KewlStatics/Shit,Sora-League/Sora,KaitoV4X/Showdown,Alpha-Devs/OmegaRuby-Server,TheDiabolicGift/Showdown-Boilerplate,AnaRitaTorres/Pokemon-Showdown,MayukhKundu/Flame-Savior,JennyPRO/Jenny,Irraquated/EOS-Master,ZestOfLife/PSserver,xCrystal/Pokemon-Showdown,Pikachuun/Pokemon-Showdown,MasterFloat/LQP-Server-Showdown,LegendBorned/PS-Boilerplate,Legit99/Lightning-Storm-Server,sama2/Dropp-Pokemon-Showdown,BasedGod7/PH,Celecitia/Plux-Pokemon-Showdown,ZeroParadox/BlastBurners,sirDonovan/Pokemon-Showdown,urkerab/Pokemon-Showdown,johtooo/PS,KewlStatics/Pokeindia-Codes,VoltStorm/Server-pokemon-showdown,Enigami/Pokemon-Showdown,Johto-Serverr/Werfin-Boilerplate,Parukia/Pokemon-Showdown,KewlStatics/Pokeindia-Codes,yashagl/pokemon,DarkSuicune/Pokemon-Showdown,DB898/theregalias,abulechu/Lumen-Pokemon-Showdown,jumbowhales/Pokemon-Showdown,Flareninja/Hispano-Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,Ecuacion/Pokemon-Showdown,DarkSuicune/Kakuja-2.0,MasterFloat/LQP-Server-Showdown,theodelhay/test,Flareninja/Hispano-Pokemon-Showdown,SilverTactic/Dragotica-Pokemon-Showdown,Fusxfaranto/Pokemon-Showdown,Flareninja/Sora,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,SilverTactic/Showdown-Boilerplate,PS-Spectral/Spectral,ShowdownHelper/Saffron,SerperiorBae/Pokemon-Showdown-1,Wando94/Spite,TheManwithskills/Dusk--Showdown,gustavo515/batata,Yggdrasil-League/Yggdrasil,AvinashSwaminathan/Pokelegends,AWailOfATail/Pokemon-Showdown,TheManwithskills/Server-2,gustavo515/test,MasterFloat/Pokemon-Showdown,svivian/Pokemon-Showdown,Wando94/Pokemon-Showdown,LustyAsh/EOS-Master,xfix/Pokemon-Showdown,Ridukuo/Test,SolarisFox/Pokemon-Showdown,Syurra/Pokemon-Showdown,MayukhKundu/Flame-Savior,PauLucario/LQP-Server-Showdown,Stroke123/POKEMON,megaslowbro1/Pokemon-Showdown-Server-for-megaslowbro1,Firestatics/omega,DesoGit/Tsunami_PS,ShowdownHelper/Saffron,svivian/Pokemon-Showdown,Flareninja/Pokemon-Showdown-1,Firestatics/Omega-Alpha,comedianchameleon/servertest1,Bryan-0/Pokemon-Showdown,Irraquated/EOS-Master,Ransei1/Alt,yashagl/pokemon,BlakJack/Kill-The-Noise,Enigami/Pokemon-Showdown,kuroscafe/Paradox,CreaturePhil/Showdown-Boilerplate,SerperiorBae/Pokemon-Showdown,bai2/Dropp,InvalidDN/Pokemon-Showdown,kotarou3/Krister-Pokemon-Showdown,KewlStatics/Alliance,MeliodasBH/Articuno-Land,UniversalMan12/Universe-Server,lFernanl/Pokemon-Showdown,TheManwithskills/New-boiler-test,Luobata/Pokemon-Showdown,panpawn/Gold-Server,lAlejandro22/lolipoop,TheManwithskills/DS,yashagl/pokecommunity,miahjennatills/Pokemon-Showdown,kotarou3/Krister-Pokemon-Showdown,danpantry/Pokemon-Showdown,ehk12/clone,AustinXII/Pokemon-Showdown,zek7rom/SpacialGaze,Pablo000/aaa,KaitoV4X/Showdown,hayleysworld/asdfasdf,Atwar/server-epilogueleague.rhcloud.com,Flareninja/Pokemon-Showdown,Alpha-Devs/OmegaRuby-Server,Lauc1an/Perulink-Showdown,lFernanl/Zero-Pokemon-Showdown,Extradeath/psserver,Enigami/Pokemon-Showdown,gustavo515/batata,kupochu/Pokemon-Showdown,xfix/Pokemon-Showdown,Oiawesome/DPPtServ2,sama2/Universe-Pokemon-Showdown,PrimalGallade45/Dropp-Pokemon-Showdown,Extradeath/advanced,Sora-Server/Sora,Pikachuun/Pokemon-Showdown-SMCMDM,AbsolitoSweep/Absol-server,xfix/Pokemon-Showdown,Flareninja/Showdown-Boilerplate,anubhabsen/Pokemon-Showdown,KewlStatics/Showdown-Template,megaslowbro1/Showdown-Server-again,MayukhKundu/Mudkip-Server,Kenny-/Pokemon-Showdown,catanatron/pokemon-rebalance,Pokemon-Devs/Pokemon-Showdown,Raina4uberz/Light-server,hayleysworld/harmonia,piiiikachuuu/Pokemon-Showdown,PrimalGallade45/Lumen-Pokemon-Showdown,AWailOfATail/awoat,RustServer/Pokemon-Showdown,SubZeroo99/Pokemon-Showdown,TheDiabolicGift/Lumen-Pokemon-Showdown,Extradeath/advanced,Sora-League/Sora,Extradeath/psserver,Tesarand/Pokemon-Showdown,Articuno-I/Pokemon-Showdown,sama2/Universe-Pokemon-Showdown,Zipzapadam/Server,PauLucario/LQP-Server-Showdown,asdfghjklohhnhn/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,Atwar/ServerClassroom,ZestOfLife/FestiveLife,megaslowbro1/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,BlazingAura/Showdown-Boilerplate,SkyeTheFemaleSylveon/Pokemon-Showdown,lFernanl/Mudkip-Server,hayleysworld/Pokemon-Showdown,gustavo515/gashoro,SerperiorBae/PokemonShowdown2,NoahVSGamingYT/Pokemon-Showdown,abrulochp/Dropp-Pokemon-Showdown,TheManwithskills/Server-2,jd4564/Pokemon-Showdown,hayleysworld/serenityserver,Irraquated/Showdown-Boilerplate,comedianchameleon/test,NoahVSGamingYT/Pokemon-Showdown,Guernouille/Pokemon-Showdown,Mystifi/Exiled,hayleysworld/Pokemon-Showdown,Alpha-Devs/Alpha-Server,Flareninja/Sora,TheFenderStory/Pokemon-Showdown,lFernanl/Mudkip-Server,Elveman/RPCShowdownServer,FakeSloth/Infinite,Thiediev/Pokemon-Showdown,kuroscafe/Paradox,CreaturePhil/Pokemon-Showdown,Darkshadow6/PokeMoon-Creation,gustavo515/gashoro,AbsolitoSweep/Absol-server,Adithya4Uberz/KTN,sama2/Dropp-Pokemon-Showdown,Mystifi/Exiled,AWailOfATail/awoat,hayleysworld/serenity,Darkshadow6/git-remote-add-scalingo-git-scalingo.com-pokemoonforums,LightningStormServer/Lightning-Storm,cadaeic/Pokemon-Showdown,Oiawesome/DPPtServ2,psnsVGC/Wish-Server,BuzzyOG/Pokemon-Showdown,abulechu/Dropp-Pokemon-Showdown,anubhabsen/Pokemon-Showdown,EienSeiryuu/Pokemon-Showdown,MeliodasBH/boarhat,TbirdClanWish/Pokemon-Showdown,Flareninja/Lumen-Pokemon-Showdown,Werfin96/Ultimate,azum4roll/Pokemon-Showdown,lFernanl/Lumen-Pokemon-Showdown,danpantry/Pokemon-Showdown,LegendBorned/PS-Boilerplate