It seems CFE now returns an html file in case of invalid query (ie the .csv file does not exist) disrupting the logic of the function. Hence after:
if (inherits(tmptry, "try-error"))
(next)()
I would suggest to add also:
if (grepl("", readLines(tmp, 1)))
(next)()