Fix a NPE when no SIM card inserted.

Fix a NPE bug caused by change "Remove carrier specific emergency
number prefixes". The Phone instance is null when there is no SIM
inserted.

Furthermore I noticed that the Phone instance is unnecessary for
the feature, so update the related code with context + subId.

Bug: 137225076
Test: Manually launch Faster Emergency Launcher in these cases:
- Without any SIM.
- With a SIM but locked.
- With a SIM and unlocked.

Change-Id: Ie3e1b352075c56c0a670e43fda163fb59f550760
1 file changed