Fix crash when using /kill in a battle
Fix crash when using /kill in a battle

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