Avoid crashing if Bluez is not ready to scan (#18392)
Avoid crashing if Bluez is not ready to scan (#18392)

Make sure to properly clear the error variable in error cases.

Also propagate errors when scanning fails (e.g. when Bluez is
not ready due to rfkill).
nestlabs/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,project-chip/connectedhomeip,nestlabs/connectedhomeip,nestlabs/connectedhomeip