timeline/elements: Don't overlap first and last keyframes.