Bug Fix in StandardMidiFile.js

Steps have been taken to ensure that attempts to move
backwards in time when saving SMFs no longer occur.
Sometimes (seldom, irregularly) message timestamps
seem to be being recorded out of order. This fix ensures
that timeOffsets are never negative.