Lightbox: Ignore HTML fragments that don't exist during outside check

Fixes #6335
Merge pull request #6400 from pjackson28/fixlightboxlinkcheck

Lightbox: Ignore HTML fragments that don't exist during outside check