Adding a check to skip links in RelatedLinks if they are set to a internal link that has been deleted or unpublished