Add sanity check for NULL data being passed to usb_perform_transfer