I don't know if I should call this a bug, anyways, in the attached WR replay you can see the driver is hitting the wall on the last sector without getting a "Hotlap invalid (wall)" warning. I don't really think this is the way to drive fast lap times.