applets/menu-window: Fix segfault when applications change