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.
Per ofono coding-style (M13), please make this check NULL vs. using the "!" operator.