Emit parsing error instead of throwing.

This makes it possible to get errors in the `.on('error')` handler and `return` stops parsing (as `throw` was stopping parsing before).