Emit the looped signal before the frame is composed.
Don't interpolate with the next keyframe if it's empty.

Refs #170.