Fix issue handling exception without message

The template is crashing due to the missing parameter.