Prevent crash during publish

Only copy over the log file if it actually exists.