The danger from a chemical leak into a Tayside river has passed, according to experts.