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().
(cherry picked from commit 1d05f98e)