Fix crash while using a choice item
Fix crash while using a choice item

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