InCallUI: Validate function return value to avoid NPE

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