[loose parser] Be more careful about calling resetTo

It will try to eat whitespace, and can thus raise an unterminated comment exception

Issue #375