lib/igc: Simplified code by using enumerate() in loop
lib/igc: Return None on error in read_igc_headers()
lib/igc: Return None if the IGC file is malformed