CRM-15002: fix broken Link Case functionality

CRM-15002: fix broken Link Case functionality