Check if the file still exists before downloading (see #9645)

see PR #440

Testing description added to https://trac.openmicroscopy.org.uk/ome/ticket/9645