Fix crash in /dexsearch (#3030)
Fix crash in /dexsearch (#3030)


jumbowhales/Pokemon-Showdown,HoeenCoder/SpacialGaze,svivian/Pokemon-Showdown,zek7rom/SpacialGaze,panpawn/Pokemon-Showdown,KewlStatics/Shit,AnaRitaTorres/Pokemon-Showdown,danpantry/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,AustinXII/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,Zarel/Pokemon-Showdown,PS-Spectral/Spectral,ShowdownHelper/Saffron,xfix/Pokemon-Showdown,DarkSuicune/Pokemon-Showdown,azum4roll/Pokemon-Showdown,panpawn/Gold-Server,jumbowhales/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,Kokonoe-san/Glacia-PS,aakashrajput/Pokemon-Showdown,Git-Worm/City-PS,jd4564/Pokemon-Showdown,DesoGit/Tsunami_PS,Guernouille/Pokemon-Showdown,DesoGit/Tsunami_PS,KewlStatics/Shit,svivian/Pokemon-Showdown,Enigami/Pokemon-Showdown,Volcos/SpacialGaze,Bryan-0/Pokemon-Showdown,urkerab/Pokemon-Showdown,azum4roll/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,Kokonoe-san/Glacia-PS,Zarel/Pokemon-Showdown,urkerab/Pokemon-Showdown,Sora-League/Sora,xCrystal/Pokemon-Showdown,xfix/Pokemon-Showdown,Volcos/SpacialGaze,svivian/Pokemon-Showdown,HoeenCoder/SpacialGaze,Enigami/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,CreaturePhil/Showdown-Boilerplate,xCrystal/Pokemon-Showdown,ShowdownHelper/Saffron,xCrystal/Pokemon-Showdown,Lord-Haji/SpacialGaze,PS-Spectral/Spectral,CreaturePhil/Showdown-Boilerplate,xfix/Pokemon-Showdown,Lord-Haji/SpacialGaze,cadaeic/Pokemon-Showdown,xfix/Pokemon-Showdown,QuiteQuiet/Pokemon-Showdown,sirDonovan/Pokemon-Showdown,SolarisFox/Pokemon-Showdown,Zarel/Pokemon-Showdown,jumbowhales/Pokemon-Showdown,AnaRitaTorres/Pokemon-Showdown,Mystifi/Exiled,Enigami/Pokemon-Showdown,DesoGit/Tsunami_PS,Enigami/Pokemon-Showdown,AWailOfATail/Pokemon-Showdown,HoeenCoder/SpacialGaze,panpawn/Gold-Server,cadaeic/Pokemon-Showdown,TbirdClanWish/Pokemon-Showdown,jd4564/Pokemon-Showdown,Sora-League/Sora,sirDonovan/Pokemon-Showdown,HoeenCoder/SpacialGaze,Git-Worm/City-PS,AustinXII/Pokemon-Showdown,urkerab/Pokemon-Showdown,aakashrajput/Pokemon-Showdown,Sora-League/Sora,Mystifi/Exiled,svivian/Pokemon-Showdown,TbirdClanWish/Pokemon-Showdown,Mystifi/Exiled,AWailOfATail/Pokemon-Showdown,DarkSuicune/Pokemon-Showdown,Lord-Haji/SpacialGaze,AustinXII/Pokemon-Showdown,danpantry/Pokemon-Showdown,xfix/Pokemon-Showdown,panpawn/Pokemon-Showdown,panpawn/Gold-Server,Bryan-0/Pokemon-Showdown,Guernouille/Pokemon-Showdown,ShowdownHelper/Saffron,QuiteQuiet/Pokemon-Showdown,zek7rom/SpacialGaze,svivian/Pokemon-Showdown,PS-Spectral/Spectral