svga: skip query flush if we already have the query result