Bugfix: We fixed a potential crash

https://github.com/owncloud/client/issues/9864
