You're framing the issue as one of harassment. It's not. Of course someone who harasses others should be held acountable, noone is saying otherwise.
A better example would be if a teacher once calls a Christian student an athiest, and gets fired for it. Maybe he didn't mean to and maybe he did, but it's pretty draconian grounds for firing someone in any case.