Fix crash when removing time from track with automation