Of course this is true, but i think it's very clear in Potter's case that she didn't intend to kill him.
She made a tragic mistake. It should absolutely never have happened. But the fact that the victim was black doesn't automatically make it racism.