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
Change-Id: I698c3ca89f7f18cb6aa451bf885ddaa950a76e4b
2 files changed