egl/x11: handle when invalid drawable is passed in create_surface