Mantis #4444 / MP1-2528 : Fix MinimizeToTray to avoid dispose dialog menu when not needed