Fix error condition check on finding correct usb interface.

Seems like the error check is wrong when testing if the correct interface was found after looping.