Test that we deal with garbage WEBVTT signatures.

I've added a new condition to the flush function so that we don't
incorrectly try to synthesize the end of a WEBVTT signature.

@andreasgal does this look good to you? I've touched vtt.js so I wanted to get your feedback before landing.