Fix infinite loop when no files are left to remove (#3541)

An infinite loop can occur when the worker directory takes too much space, but no files are found to remove.
1 file changed