Fix some incorrect checks against nil in Win32 deployment