The trade is not yet closed. If it were closed, the TMF would not run anymore. The profit of trades is only known _after_ they are really closed, so you can retrieve it in a for(all_trades) loop.

The last run of a TMF happens between hitting the stop and closing the trade. This is here the case. So at that time the trade is still open, despite the triggered stop. I suppose its profit is therefore still unknown, that's why you get no value. I can also not see with your script any difference with and without TMF. In both cases the end profit is +92 pips.