Check ftdi pointer before accessing it