fix check for empty viafid returned by dbpedia [Fixes #39083011, #39083303]