Fixed occasional assertion failure when clicking forward stepper in the
GtkNotebook.