Fixed the crash when toggling fullscreen on empty ws

By checking the client is not null