rstt_cli: fix exception when data eof