Fix Timeline::isComplete immediately after changes

The endTime is calculated based on the mDuration of this TimelineItem.  If the duration of this TimlineItem instance should be updated, then we should recalculate the duration before using mDuration in the calculation of endTime.