In some contexts, an error caught by the error service has no stack, trying to annotate the stacktrace of this error with the Stacktrace library crashes, masking the original error which is unwanted. closes odoo/odoo#77421 X-original-commit: 347ddcc06e23d8f1a94c06379b2bfe104b116d90 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>