The Via header was first time created before execution of `event_route[tm:local-request]`, the condition there is to figure out if it needs updates.
Starting from this, I just looked back into the code and discovered that the tm module does not create Via header first time using create_via_hf(), but another function in the module. I will try to fix it soon.