Fix jenkins agent check when build does not yet have results