role information may has no title defined

which raise error when sort role list in py3
Module Products.ERP5.Document.BusinessTemplate, line 3518, in build
type_role_list.sort(key=sort_key)
TypeError: '<' not supported between instances of 'NoneType' and 'str'