The first sentence is still true if you remove the race references from it. Is it still racist then? Or is it just showing differences based on income level?
It is using differences based on income level as a piece of information that is more important in a driver's decision making process than race.
Cab drivers who do not have that information fall back to race. Presumably, if a crystal ball existed that told a driver "This fare will not harm you", the problem of racism would disappear.
There aren't many drivers who are refusing money out of pure racial hatred. Black cab drivers are racist against blacks too.