[PATCH 4.9 031/137] firmware/efi: Add NULL pointer checks in efivars API functions