Fix crash with /rank
Fix crash with /rank

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