Fixed the crash when toggling fullscreen on empty ws

By checking the client is not null
Looks nice, can you please remove the braces though? They aren't needed here as there is only one line.