Restore calling identity when exception is thrown

MediaProvider#updateInternal parses uri that can throw
NumberFormatException after which calling identity is not restored.

MediaProvider#getResultForGetMediaUri can throw
IllegalArguementException if documentUri's authority is incorrect, after
which calling identity is not restored.

Bug: 417195606
Bug: 418225717
Test: EXEMPT bugfix
Flag: EXEMPT bugfix
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bb834ffbc6bbede6ca1ad49ca1301e6e567c551b)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b92a39f830516b5e9a1e5ba529e8f9ba0380ada3)
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:9c184d461fd647178bea74450cf4c3e2643f9527
Merged-In: Ia295e56530a44c437db3a159e97c12d1a239b547
Change-Id: Ia295e56530a44c437db3a159e97c12d1a239b547
1 file changed