Fix segmentation fault when no USB devices detected

Signed-off-by: Thanh Ha <thanh.ha@alumni.carleton.ca>