Check for nil 'query'.