-simple test if header has bad double webvtt
-removed advance arg from collectNextLine as suggested
-enter BADWEBVTT state on invalid header thus ignore further parsing