Keyguard: Fix another derp and check against null

good night

Change-Id: Ia31af94024fa9884153015be807bfc89dc5502f7