[RESEND PATCH v2] efi_loader: Fix UEFI variable error handling