r600g: correctly handle queries which don't need begin_query