Logic fix for icon activation.

Covers all possible cases for icon activation in system tray.
I don't actually think that this is necessary, but okay.