Fixed error that appeared in IE while trying to open clearing lightbox from the same image on 2-nd attempt

http://api.jquery.com/attr/
'As of jQuery 1.6, the .attr() method returns undefined for attributes that have not been set.'
Merge pull request #3278 from cmex/master

Error in IE with foundation clearing