Only try show lightbox if this is actually a gallery
Merge pull request #5885 from guardian/gallery-index

Only try show lightbox if this is actually a gallery