discovery: do not fail discovery on individual devices

Any errors returned from individual devices during discovery do
not invalidate the entire discovery. So instead of returning
the pointless accumulated error count we should be returning
the number of devices which were actually discovered.

References: bnc#860850

Signed-off-by: Hannes Reinecke <hare@suse.de>