Fixed zero-length corpus in record_counts_by_year() fail