In case the file has been removed from the IdTree DB, but is still in the
IndexingLevelDB, documentUrl(id) may return an empty name. Skip the
check if the name isEmpty().
Qt 5.10 issues a runtime warning otherwise - 'Empty filename passed to
function'.
See also D8697.