Fix wayland client interaction

Yes, but what state should the application go if the buffer is NULL? There is no way to recover from that.