Better generation check in /smogdex command

Use a better generation check so smogdex does not link to empty Smogon pages.