Add sanity check to avoid NullPointerException.

Test: none
Bug: 72463137
Change-Id: I6308d7495048dca751d8ad0d9974b3484fa527ae
1 file changed