Fix ert backtrace saving for non-`signal'ed errors (Bug#28333)