nvc0: avoid fault in get_query_result if there was no begin_query