Do exception handling per SMS while restoring messages. am: d99a1690d1

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/providers/TelephonyProvider/+/12349208

Change-Id: Ie03eadc6b3f9a048d3f1ab3a28c6bfba6218f16f