You realize that's a value statement without any justification. It's not really a fact that you're stating there. I happen to agree with your opinion, that religion is not a good justification for being a health hazard, but there are plenty of people who would argue it IS an excuse not to be vaccinated.
I'd argue it's not a valid excuse because it has the potential to get others sick, you're not just making a decision for yourself. Of course, one could say that line of reasoning, using indirect, unintended consequences, is isn't good because it could be extended to deny you of any other right. Like "Your gun might be stolen and used to murder someone: therefore you should not be able to own a firearm."
My point is that it's not as black and white as you're making it, even though I think we all here agree with you.