Fix a crash from invalid template
Fix a crash from invalid template

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