**Steps to replicate the issue** (include links if applicable):
Seems to only happen when the page is first loaded, I can't reproduce using my console.
* add portlet links via `mw.util.addPortletLink`
**What happens?**:
second portlet link has an empty icon
**What should have happened instead?**:
- No icon (no ID was passed)
- If ID has passed strictly one icon
**Software version** (skip for WMF-hosted wikis like Wikipedia):
**Other information** (browser name/version, screenshots, etc.):
```
lang=js
/* Edit personal nav links */
mw.loader.using('mediawiki.util').then(function () {
mw.util.addPortletLink('p-personal', '/wiki/en:User:TerraCodes/dashboard', 'Dashboard', null, null, null, '#pt-betafeatures');
mw.util.addPortletLink('p-personal', '/wiki/en:Special:ProblemChanges', 'Problem', null, null, null, '#pt-betafeatures');
$(function () {
mw.util.addPortletLink('p-personal-sticky-header', '/wiki/en:User:TerraCodes/dashboard', 'Dashboard', null, null, null, '#pt-betafeatures-sticky-header');
mw.util.addPortletLink('p-personal-sticky-header', '/wiki/en:Special:ProblemChanges', 'Problem', null, null, null, '#pt-betafeatures-sticky-header');
});
});
```
{F36318869}