Fix NullPointerException for requestNotification

Also use EnhancedConfirmationManager to detect if the package
is Restricted Settings Allowed instead in V.

Test: cts
Bug: 329718684
Change-Id: Ic503338e92927c78eb02085edfc8c7a909afaeb9
2 files changed