opengl: don't crash in GLTexture::toImage with OpenGL ES
Noticed this because KWin crashed in the Zoom effect for me. It's a bit weird that the Zoom effect uses this code path, just to upload the image to an OpenGL texture again, but this needs to be fixed either way...