Bug 1660: Error when closing edited/opened files with "Keep temporary copies of remote files in deterministic paths" option enabled
(before Bug 1352, it worked because SHFileOperation silently does nothing when provided with an empty path)
(cherry picked from commit 5b8156df4e73aab36966f781fdfd82fa86c07a22)
Source commit: b7722a09eb3e5f011cbf2de460679e5ea9bec8d5