glwindow: wayland: Fix errors or crash when cycling through null state
This set fixes crash or errors on wayland when a display is kept but a pipeline is cycled through NULL state. This issue could also be reproduced by setting the same window handle again directly on the glimagesinkelement.
cc @ystreet Related to mesa/mesa!11979 (merged)