MT#6871 FIx subs creation if contract.external_id

Stupid copy/paste error using wrong contract var.