Fix bug in stats templatetag that made it impossible to limit the number of items shown.