llvmpipe: guard against NULL task->query pointer