Fix crash when adding automation tracks caused by route ordering.