Fix the settings crash when SimDialogActivity is null

The PreferredSimDialogFragment did updateDialog after SimDialogActivity
was finished. It caused the settings crash. This is similar to b/184899699

Bug: 220803944
Test: build pass
Change-Id: I9a5964400a63053e362632944b9e7aa8ec1bbea8
(cherry picked from commit 70bf76a43637f2a9666e596d932233040d3a58df)
Merged-In: I9a5964400a63053e362632944b9e7aa8ec1bbea8
3 files changed