ignore link creation on variant if it's the master

This was patched in 2-2-stable but ignored in 2-1-stable. I just added the same logic to check if a variant is the master before creating digital links for it.