Fix regions without newlines to be parsed.

We need to synthesize the end of the current cue or region when
calling flush().

Fixes issue #48.