Fix crash when packing a team with custom mons
Fix crash when packing a team with custom mons

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