Fix JS error on product page when product has no images.