egl/wayland: Fix sRGB format look up for config
That check should help with situations when the dri2_wl_visual_idx_from_pipe_format function can't recognize pipe_format as before.
Closes: #10829 (closed) Fixes: 6a084e2b("egl/wayland: Use pipe_format to look up configs")