A condition for the existence of a weakly closed TI-set