Fix segfault in the Khronos test. When egl_state_lookup_cached_texture returns
a null pointer we should early return.