- added a final check on $link_item, as it might not be initialized or no record was found, thanks to @AlfredSK for reporting this - see #11632
- added a final check on $link_item, as it might not be initialized or no record was found, thanks to @AlfredSK for reporting this - see #11632