Adding null check to prevent crash when factory resetting device. (5214968)

Change-Id: I514a17bdf097c6df17cacbe6d3aa59d427bc713b
1 file changed