There was no risk involved. You used a condom for intercourse and that ensured your safety.
Also your contemplation of risk with the outer part of the condom touching your partner's penis was certainly not a risk, the virus is inhibited the moment it comes in contact with the environment.
Penis touching vagina is not a risk as there was no penetration.
You even got him tested and he fared a negative. I suggest you think rationally, you are exhibiting obsessive behavior. HIV shouldn't be your concern.
Please someone answer please