According to the logic of functions BKE_tracking_get_active_tracks or
BKE_tracking_object_get_tracks, tracking->tracks is only used when
the MovieTrackingObject chosen is of the type TRACKING_OBJECT_CAMERA.
The same logic should be used in python, so this patch proposes this.
Ref T76440