Keyguard: LN: fix and harden against null pointer exceptions

Change-Id: I6a3139d98fc3ab2165561c7ae640a0814c80bee6