Fixed problem of getting new category structure in getMaxLaps.
Added a check to History if the race laps is marked as zero.