Fix issue in https-e wasm

In tor-browser-build!367 (merged) we used a workaround to fix tor-browser-build#40383.

This ticket is for resolving the underlying issue