Merge "Use the try catch to deal with the StaleDataException." am: 1fa847ad64 am: 15698dd32d am: 4b16237ab7 am: d715c91c2a am: 0a2fb51a9e

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

Change-Id: I018f9d6d2563625b57d748f253573998dac342d6