Irrelevant. If I successfully defend myself from a rape attempt by biting the attacker, that will be recorded as "attempted", and yet I will still be exposed to the risk of HIV infection.
Fortunately, this is irrelevant. Given the severity of HIV, the full 18% figure can be safely taken at face value, for society-level disease prevention purposes. HIV is both expensive and deadly and vaccination is cheap.
If that is the question, it's based on some abhorrent moral assumptions.