Simplify handling of next visualization output time.

Also fix glitch when changing output_interval to 0 during restart.