[pergola] change to a more generic way for track2merge empty