Add protective null check

For tests and possibly rare race conditions

Test: KeyguardNotificationVisibilityProviderTest
Fixes: 324014574
Change-Id: Ib87b90dd2a5df6404b315071b02c601ad7bda8b6
2 files changed