+1 on what mike said. These worms can't overtake your system like the red aceol flatworms, which are also photosynthetic. Even the red aceol flatworms are not predatory and don't eat things, however if they die off in large groups, then their fluids can become toxic. If you found one of these, you likely have more, but it is not necessary to go all out to wipe them out of your tank.
Cheers~!
Jon