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

Helps with debugging errors in template