Avoid computing lastFailedBuild if lastSuccessfulBuild is not null.