Fix getPokemon for inactive mons

If the search ID didn't include a slot and no details were provided, it would always return an active Pokémon.
This should fix most graphical glitches related to Red Card.
Replays converted from text.

`battle.js` isn't just for PS, it's also for Project Pokémon's replay converter, and for PO's replay converter. The protocol explicitly supports converting to/from plaintext.