InCallUI: Validate function return value to avoid NPE

Change-Id: I265860937d9489ef52934be759637a868349a23e
(cherry picked from commit 70be315247d92cc8f30d0e9e7a984a0e52cd233a)