Fix js error when image source has no attributions