Gallery could not be set for related products (#887)