Fix for error message when grouping documents

When setting up a grouping in the documents tab, an error message with the text 'Lead attributes....' appeared in version 80. This issue has now been fixed.