Fix crash in custom punishments change
Fix crash in custom punishments change

svivian/Pokemon-Showdown,Zarel/Pokemon-Showdown,svivian/Pokemon-Showdown,xfix/Pokemon-Showdown,svivian/Pokemon-Showdown,Zarel/Pokemon-Showdown,svivian/Pokemon-Showdown,Zarel/Pokemon-Showdown,xfix/Pokemon-Showdown,xfix/Pokemon-Showdown,xfix/Pokemon-Showdown,svivian/Pokemon-Showdown,xfix/Pokemon-Showdown