Just like "I was just following orders" was not an excuse, "My religion claims I had to do it" is neither. If you behave as an offensive bigot, you are an offensive bigot. Petty excuses will not be tolerated. Ramen.