When an protlet link is added with mw.util.addPortletLink without an ID, it is not aligned with portlet links with an ID. This is because these links are not given the mw-ui-icon and mw-ui-icon-before classes, meaning the margin where the icon would go is never added.
In the picture above, "User script" does not have an ID, but "Todo" does.