Add out of range check for track numbers