Fix "this._deferred is null" WebDAV sync error

This occurred if an attachment had only files beginning with periods.