Check emergency routing information for emergency calls only

Modify the code to check emergency routing information only for
emergency calls.
EmergencyNumberTracker is required to check emergency routing
information.
EmergencyNumberTracker can be accessed through the phone object.
If it is not an emergency call and SIM is not inserted,
the phone returned by getPhoneForAccount is null.

Bug: 348599476
Test: build and manual test
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:817fbef49fcfcdcf686d1c8dd48623d89078f9fa)
Merged-In: If46cdb4d41ab128360461ac230e8f851b942e719
Change-Id: If46cdb4d41ab128360461ac230e8f851b942e719
1 file changed