Fix invalid pointer comparisons to 0.

Bug: http://b/31532493

Test: Built platform with latest Clang toolchain successfully.
Change-Id: I7b1b694920503d8890089996689c256941b1c01e
3 files changed