Additional parameter validation for EGL functions

Change-Id: I841d005647559799edbc2c4824c61ea5791cf893