Halo: Fix possible NPE

https://github.com/AOSPA/android_frameworks_base/commit/20d229364be729d2ea35f5f2453d37819c1ad286

Change-Id: If1f604baeb9c25c2b8009f2d98e18ecea8bdb278