MT#5929 Fix ext_subscriber_id and ext_contract_id

Properly populate contract's and subscriber's external_id into
subscriber's ext_xxx_id preferences.