Handle IllegalStateException from TelephonyManager.

Some TelephonyManager APIs can throw an IllegalStateException; these
methods no longer exist in Master.  However, adding in exception handling
here to ensure crashes do not impact QT-based devices.
Note: This has already been fixed in AOSP and master, hence the
do not merge anywhere.

Test: Run telecom unit tests.
Bug: 134100020
Bug: 139088691
Merged-In: I49f632243704ba08a106867c58573e5631dda5d6
Merged-In: Ia42c5bce2fd010d9e5ba3d4a76575d27c7940608
Change-Id: If9ae7cf06d4a5af6c15276c59222a1d4f7c6de58
2 files changed