Fix return handling of ftdi_read_chipid