rilmodem: Prevent crash when moving between offline and online

Depending about timing ril_gprs_data might be null when moving back and
forth between offline and online. This fix prevents the crash in that
situation.