Hopefully fixed /dex command for CAP

I noticed that for most arguments, the /dex command either returns a correct Smogon analysis URL or displays a "pokemon not found" message.  For CAPs, however, it currently returns an incorrect URL.  I read through the source code for the "/dex" command, along with tools.js and several of the data files, and though I have not tested this code, I don't believe it would break anything (you may add a try-catch to make sure) and I believe it should fix the bug.