I think the point was the case should not be thrown out because the judge doesn't like the plaintiff but only if the case is baseless. You can't judge the validity of a case just because preconceived notions about the plaintiff.
Also taking into account the surroundings of a case, including who’s involved and their history is not preconception (or then everything becomes preconception).
It’s not the same if you’re a CEO filing a suit against a grandma who shouted insanities at you when you fired their son, and if you’re a worker subject to verbal abuse from your boss.