glx: Fix use-before-null-check in dri2InvalidateBuffers().