Fixed issue with null QueryResponse