Fix open-device-log-stream throwing wrong error when 0 devices found

@paletov @Fatme