Fix a crash.
Merge branch 'master' of http://github.com/FrPSServ/Pokemon-Showdown