qpa: Guard against failing to get a swapchain in platform opengl context
QOpenGLContextPrivate::setCurrentContext() was dropped because the platform opengl context no longer uses QOpenGLFramebufferObject, which needed QOpenGLContext::currentContext().