Fix #2229: bubble up parseError event