SearchResults.php is returning 500 error from elastic indexed records

Using elasticsearch , one of the Custom module does not Use NAME field. Thus Name column values are blank and i don’t see that indexed too, via kibana. So when searching that module, it returns 500 error. The problem is at the line https://github.com/salesagility/SuiteCRM/blob/e523df75ffaeaa593a1eebb4f7306b9e9c81759c/lib/Search/SearchResults.php#L213

When i comment the Link line, it returns all the records for search correctly. Is the Search Return using NAME column as a Must or Hard Coded field to make a Link for the Returned Records ?