check string against nullptr

Bug: 245651185
Bug: 244468573
Test: boot, fuzzer
Change-Id: I479341e6e95720303bcd542dbeb50c4383d59cc6
1 file changed