wayland: Don't paint if the window is unmapped
If a window is unmapped by the client while gdk is processing updates, (for example Firefox unmapping its window on Expose events), the windowing backend resources might be lost (for example with Wayland) which can cause a crash in end_paint().