Handle IllegalStateExceptions possible from EmergencyNumber APIs.

The emergency number APIs can throw IllegalStateExceptions in rare
cases where Telephony is not available; handling those exceptions to
ensure com.android.phone doesn't crash.

Test: Run telephony unit tests.
Bug: 134100020
Change-Id: I63b794f25edfbb4726afbc1c4c0a26f025fe8b54
2 files changed