Fix crash caused by NPE from isOffhook

Change-Id: I06dd2cb98385f3dbca3ac230f27956c771633c18