Failure in template instantiation is a lookup failure (ROOT-6070).

(cherry picked from commit 4c32242c51a35c6e2f616457083927a68822a699)
(cherry picked from commit a0222efc70bd60a8c3bceb5e357630c81f5df3c8)