I have always believed that there should be no subject about which one cannot make jokes, religion included. Clearly, one is always constricted by contemporary mores and trends because, after all, what one seeks above all is an appreciative audience.
For telling a good and incisive religious joke, you should be praised. For telling a bad one, you should be ridiculed and reviled. The idea that you could be prosecuted for the telling of either is quite fantastic.