fix Issue 5878 - Forward reference in returning superclass from template using is() expression
Merge pull request #1859 from 9rnsr/fix5878

Issue 5878 - Forward reference in returning superclass from template using is() expression