mesa: fix NULL pointer deref bug in _mesa_drawbuffers()