Prevent crash when Windows SysTray function hits PyWin bug.