Correcting NULL pointer when callerApp is not set

Change-Id: Ia6570f428141de32d564dd190bbcf93a5d640fd1
JIRA: CYAN-2458
Issue: https://jira.cyanogenmod.org/browse/CYAN-2458
Frameworks : Fix face detection

I337a7a2e8b124aac76f52abcc0edd8af9b0b0e29 introduced
the ifdef's at the wrong location. This patchset addresses it.

Change-Id: I6b19fb96076bdc62b2ca57d1ccaf97f0cb901d67
DeviceKeyHandler : Allow handling keyevents while screen off

Some devices require the keyevents to be processed while the screen
is off, this patchset addresses that by moving the filter up in the call
hierarchy.

Change-Id: If71beecc81aa5e453dcd08aba72b7bea5c210590

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java