The bias goes much deeper than that. It's not just women, but all minority or discriminated groups, the "other" group, so to speak.
If a woman, or minority group Leader, is aggressive or abusive, it's all "women" or all of that "group" who are bad bosses or Leaders. If it's a man or any other...