fix Issue 8648 - No error line number with incomplete template
Merge pull request #3035 from 9rnsr/fix8648

Issue 8648 - No error line number with incomplete template