I think that there's a bug in jenkins or something that causes build.getRuns() to return the wrong builds sometimes.
We saw this same behavior in the DescriptionDashboard