Issue 12201 - Crash on forward reference import within mixed in template

https://d.puremagic.com/issues/show_bug.cgi?id=12201