I don't think 5.1 has the same logic as 5.2 and it might not be an issue there.
Gail Badner@gbad can decide whether this fix needs to be backported.