only catch errors if they are in an extension

This should hopefully improve problems discussed in: https://github.com/bolt/bolt/issues/1661

This now only catches parse and fatal errors that are inside an extension, others in core of bolt etc will fall through to default behaviour.