Bugfix: Fixed a potential crash on cancelation of discovery jobs


https://github.com/owncloud/client/pull/7760
