CAMEL-8121 Fixed the issue that Infinite Loop Within Camel if the temp file directory is not writable