MP1-4325 : Move dbTracks.Count check inside the loop to avoid failure.