Added code for handling invalid parameters and attribute terminators, for EGLv1.4. Will also work for future versions of EGL if no additional parameters are added. If additional parameters are added in versions > EGLv1.4, handler has to be added for it in eglCreateContext