fix Issue 12201 - Crash on forward reference import within mixed in template
Merge pull request #3286 from 9rnsr/fix12201

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