hamradio: add missing sanity check to tty operation