#220953 by pwolanin: it was possible to have menu items with nonexistent parents, now properly reparenting