Big fix: Submenu clones invalid nodes sometimes

See RT 392043 for details