Fixed #22792 -- Updated checks for list_display_links in model admin

Thanks to @bendavis78 for the report.