Add check for null before strip_tags on the link

Closes #3524950

Since links can be null, this replaces it with an empty string instead of null as this is deprecated in php 8.1

Merge request reports

Loading