usbtty: avoid potential NULL pointer dereference