[PATCH 4.19 082/313] firmware/efi: Add NULL pointer checks in efivars API functions