Nobody suggests that the legal system should be based on emotions. That's absurd.
What I criticize however is shaming people for expressing their fears of foreigners. Or rubbing statistical data into their faces to shut them up. Openness has to come from inside, cannot be enforced upon people.
Distrust to a different race is a healthy behavior shaped by thousands of years of evolution. You cannot override it easily with the rational part of your brain.