egl/wayland-egl: Fix for segfault in dri2_wl_destroy_surface.