bugid:101492 fixing gallery images with external links

https://wikia.fogbugz.com/default.asp?101492#646341

Couple things were happening that should now be fixed:

1) Clicking on gallery images with specified links opened the lightbox whereas it should have navigated the user to the linked page
2) When linked gallery images appeared in the Lightbox carousel, the link location was getting mixed up with the link location so the image was showing as not found.