fix Issue 9880 - Redundant template instance displaying in error message
Merge pull request #1845 from 9rnsr/fix9880

Issue 9880 - Redundant template instance displaying in error message