fix Issue 13353 - [ICE] assertion with is() and templated interface
Merge pull request #3901 from 9rnsr/fix13353

[REG2.066] Issue 13353 - [ICE] assertion with is() and templated interface