This is translated according to user language, so "All Item Groups" might not exist on site. The code already finds root item group without doing anything. towards https://github.com/frappe/erpnext/issues/36635