[windowthumbnail] Verify that the relevant GLContext exists
glXGetCurrentContext checks if any GLContext exists and is current.
resolveGLXFunctions uses window()->openglContext()
One can hit a situation that you are using software rendering for the window, yet someone else has created a GL Context. This then passes the first test, but we then try to use a null object and crash.