fix problem when ldap returns no groups FS#2788