Fix WebDAV syncing (broken in 62e779bee)