Fix NullReferenceException in EndGetTracks