Fix legend NULL if multiple images

Legend is NULL when a product has more than one image and that the cover is not the first one.