Explicitly exclude the link element used for close button in inline widget.

This fixes issue #5473.