two fixes to preview bounds script

whoops. a non-tempo event that didn't come right after a tempo
event would screw up the tempo map