Don’t let others sins cause you to sin.
It is not a sin to avoid Mass when it is a endangering your faith.