*8638* Add bounds for statistics years

See http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8638
Forgive the duplicated code -- the current statistics code does that, and fixing it is out of scope for 2.4.4.