InCallUI: Validate function return value to avoid NPE

Change-Id: I265860937d9489ef52934be759637a868349a23e
Merge remote-tracking branch 'cyanogen/cm-11.0' into cm-11.0