mesa: handle missing read buffer in _mesa_get_color_read_format/type()