Bug 1058853 - Don't break the gallery if we have corrupt images

Yeah I'm logging it earlier already in the parsing logic, that's why I didn't add it here.