We want the first PrevSuccessfullBuild, not the last one !

This is part of TRAC-3071
Merge pull request #1455 from benallard/patch-1

We want the first PrevSuccessfullBuild, not the last one !