Fix a crash in eglDestroyImageKHR()
Apparently, libepoxy requires a current EGL display in order to resolve EGL functions. This is unexpected as most of the EGL functions require no current opengl context.
This change makes kwin bypass libepoxy for problematic cases.
(cherry picked from commit 13c092d6)