[FIX] name_get of the hr.department
[FIX] name_get of the hr.department

Recursive call currently fails with an IndexError as `name_get()` in new
API context returns a list of a single pair.

Closes #12496
dfang/odoo,ygol/odoo,hip-odoo/odoo,hip-odoo/odoo,dfang/odoo,dfang/odoo,hip-odoo/odoo,hip-odoo/odoo,ygol/odoo,hip-odoo/odoo,hip-odoo/odoo,dfang/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,dfang/odoo,dfang/odoo,ygol/odoo