[Parser] Unbreak parsing with incremental parsing enabled and add a unit-test for it.