Merge pull request #24951 from owncloud/backport-24949-internal-server-error-in-sync-client-on-forbidden-directurl [9.0] Catch the ForbiddenException to make sure it gets handled