timeline: Make sure we do not move object when only trimming

We were missing a few checks so that we do not move objects when their
duration is equal to the max duration, or 0
tests: timelineedition: Minor cleanups