pipeline: Keep track whether the pipeline has a duration

This fixes a stacktrace showing up when resizing clips backed by an
image. An image asset does not have a duration.
x