The little-known affiliate marketing practice can give companies credit for sales they didn’t generate, potentially taking commissions from others.