Fix attach menus being destroyed when there are no options.