HR-200 : same contact editing 2 different contacts for visa expiration creation, doesn't create activity for the second contact

Log in with admin user,

1) edit any contact so that its visa required is 'Yes' , and also add a migration record to it. Now, you can see 'Visa Expiration' Activity been created.
2) edit a different contact so that its visa required is 'Yes' and also add a migration record to it. For this contact 'Visa Expiration' activity is NOT been created.  

for the fix had to do some improvement in api usage for checking if the target contact has activity present or not.