Correctly merge the tracks if there is one source.

Previous implementation did not correctly merge tracks when `merge=true` was passed and there was only one source remaining. In particular, this applies to the `merge_tracks` operator...