efi_loader: fix efi_tcg2_hash_log_extend_event() parameter check