Fix several bugs in SaferIntentUtils

- Switch over to noLogging platformCompat APIs to reduce performance
  overhead
- Add additional null check to prevent NPE

Bug: 336039853
Bug: 349017965
Flag: EXEMPT bugfix
Test: atest CtsPackageContentTestCases:SaferIntentTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d4ac3c2d1e424686591d927e8097506bb7ec756c)
Merged-In: I698c3ca89f7f18cb6aa451bf885ddaa950a76e4b
Change-Id: I698c3ca89f7f18cb6aa451bf885ddaa950a76e4b
2 files changed