Issue 10346 - No line number error with undefined template identifier

http://d.puremagic.com/issues/show_bug.cgi?id=10346