Better generation check in /smogdex command

Use a better generation check so smogdex does not link to empty Smogon pages.
Merge pull request #219 from Joimer/patch-14

Better generation check in /smogdex command