No, this is not a risk for HIV. HIV is transmitted only in the following ways which are unprotected vaginal or anal intercourse where penetration took place or sharing of drug (IV) needles. Air inactivates the virus. Frottage, just touching semen will not transmit HIV because it has to happen INSIDE the body. So, you did not have a risk and can breath easy.