Better handle null adapters and NPEs in the CQE
remove test main
use emitting logger for query resource
remove whitespace
Merge pull request #502 from metamx/fix-NPE-CQE

Better handle null adapters and NPEs in the CQE