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