Avoid undefined error when datagrid row has no ID

On the Categories list page, clicking on the edit icon in the datagrid caused an `undefined` error because the ID property is not set on the table row.