Add a null checking to avoid crash.

Fix http://b/viewIssue?id=2125276
1 file changed