Fix console errors with popover-link-component.

EDIT: see below.