rilmodem: fixes possible segfault issue in USSD