Correct error detection when we fail to get attributes for an SMB file. Part of fix for forum bug #1207.