fix npe in CachingQueryRunner
Merge pull request #473 from metamx/fix-caching-npe

fix npe in CachingQueryRunner