re: #271 - Lightbox : no image to display
* adding more robust check on text/html content type