Fix file sync error in Fx23+ for empty attachment paths

And fix reporting of non-OS.File file sync errors