Fix potential null dereference.
Fix potential null dereference.

Found by LLVM/Clang Static Analyzer.

ok benno@ henning@

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