Fixed NPE in ReflectionPool.

closes #1277
Merge branch 'origin/master'