[core-utils] fix generateLinksHtml with grouped links