[REG2.063a] Issue 10166 - XXX is not a template

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