Fix potential null dereference.
Fix potential null dereference.

Found by LLVM/Clang Static Analyzer.

ok henning@ claudio@ krw@

orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars