Yeah, while it's probably not an eventuality that entered the minds of the people writing the laws, I think most courts would say if somebody is actively going out of there way to get infected and understands what that entails, it's not anybody else's responsibility to shield them from the results of their incredibly stupid decision.
Generally we all have the right to expose ourselves to danger as long as it's only ourselves. I'm allowed to cut my own arm off if I want to - nobody would encourage it, but few laws would prosecute me for it. Getting HIV is probably the same thing.
Although given how effective retrovirals are, I wonder, do these guys actually want to experience HIV (e.g. the symptoms) or do they just want to have it, and hopefully suppress the symptoms?