Either way will probably work, and it's only the cost of a t-fitting to try it one way versus the other. But I think the programming of the PID controller in the TOP is done with the idea that it is used to measure the wort after it passes the heat source, be it direct fired RIMS or HERMs.
Best way to find out is to try it.
Best way to find out is to try it.