(#14458) Fail when cannot apply complete catalog

Follow-up commit which raises Puppet::Error run even on uncaught exceptions.

Also extends the error with backtrace.