[SimpleTray] Fixed possible segfault at exit if tray is not found