(PUP-1350) keep original stacktrace when error happens parsing inline template

Helps with debugging errors in template
Merge pull request #2215 from carlossg/template-stacktrace

(PUP-1350) keep original stacktrace when error happens parsing inline template