Fixes #5582 handling hidden divs for colorbox lightbox