fix Issue 12302 - Assertion failure in expression.c (line 432) when using template isCallable

https://d.puremagic.com/issues/show_bug.cgi?id=12302