Add the protection to avoid the crash in the corner case.

Bug: 168584780
Change-Id: I929015af9b7d72bb406940ac2734e7e88d99d4d9
1 file changed