fixup for category-links in achievements-listview if its a statistic
moved error code for wrong Ids and pageNames to Tempate-Class
throw an error if an invalid category-parameter is passed