check if trayicon is not 0 instead of checking if systray is available