Only unlink the symlink tempfile on error if it was created in the
previous operation.
Merge pull request #6597 from tarka/handle-uncreated-symlink-tmpfile

Handle missing symlink tempfile