mesa: fix out of bounds access in glGetFramebufferParameterivEXT