fix Issue 11844 - ICE(template.c:6643) Assertion failed: (td->semanticRun != PASSinit)
Merge pull request #3056 from 9rnsr/fix11844

Issue 11844 - ICE(template.c:6643) Assertion failed: (td->semanticRun != PASSinit)