[RESTRICT AUTOMERGE] Attempt to fix exception in IMS am: 468f72f016

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16601123

Change-Id: I7e68b82bea841ddbb48cd5d3955605de143eb33f