Fixes Bug #2191,incorrect test for egl_context validity
Thanks David Binderman!