Fix a crash in gen 1
Fix a crash in gen 1

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