Fix critical replay bug

In certain cases, setting the frame visible would force a repaint with
the wrong timestamp, possibly removing all of the Events and leading to
an invalid state.