Lightbox: Popup now closes when navigating outside the popup (fixes #5009)