When a protlet link is added with mw.util.addPortletLink without an ID, it is not aligned with portlet links with an ID. This is because the createIconElement is never called for icons without an ID.
In the picture above, "User script" does not have an ID, but "Todo" does.
This is similar to T301012, but is caused by different code.