Check for non-empty src or href for all media types