Check if we have a systray to use.

This fixes a failure when we run the first run wizard and don't have a
systray ready.
Merge remote-tracking branch 'ivan/bug/fix-systray-bug-in-first-run' into develop