The statement the master gives is clearly not limited to the situation at hand - he considers pity categorically inappropriate for a Jedi.
It's obviously not that clear. Saying that a Jedi can never have pity ever is taking what he said too literally and applying it too broadly. Syo Bakarn and Jaric Kaeden both say that compassion is essential for a good Jedi at other times and they are both Jedi Council Members. If they also believed that Jedi can't have pity, they can't both be true.