CRM-19131. Only set source contact ID if we got a value for it.