Fix crash when OpenGL context is NULL in ImageBuffer destructor