Try uninstalling the app from terminal...
sudo port uninstall tor
Then try and reinstalling.. I had the same problem only Safari was listed twice. I could never figure out how to repair it. It wasn't like that in the guest account so I ended up creating a new administrator account and transferred all my data to the new account. Then I deleted the corrupted account. This was on 10.12.6 by the way..