Fix compilation error
Merge pull request #929 from heidiso/getVersionOfAttachmentURL_develop

Fix compilation error
For two of the unstable integration tests that involve file handle deletes, prevent race conditions with the PreviewWorker