display full jinja traceback when applicable

This fixes #10010
Merge branch 'fix10010' into develop