ensures query helper does not have nil query_obj