Fix NullPointerException by 'adb shell service call uimode 1' am: a62ca14425

Original change: https://android-review.googlesource.com/c/platform/packages/services/Telecomm/+/2026103

Change-Id: Ibd3faa9181261014d718bcd7c4c23d95f6e431fa