main: Check for defined on download file handle prior to stat()