Fix crash when attempting to generate a randbat set with no viable moves
Fix crash when attempting to generate a randbat set with no viable moves

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