Yes. Even if that player gains zero commodities when their commodities are refreshed, their Trade Agreement may still be played against them.
The official FAQ allows Trade Agreement to be played in this situation. Refreshing zero commodities is still a refresh of that player’s commodities.
Official FAQ (LRR v2.0). Use the cited official wording or card printing; do not mix replacement / Omega / expansion versions.