[#2923] When adding track events, if end and start are greater than duration, do not add the event, if just end is greater, let end = duration