[JENKINS-18861] fixed so that it does not load useless build.
.
[JENKINS-18861] added test for LatestBuilds. 
.