InCallUI: Validate function return value to avoid NPE

Change-Id: I265860937d9489ef52934be759637a868349a23e