Add condition for when media resource isn't a media set and doesn't contain a media file