Fix restart of failed job when they have no manual trigger

In a pipeline, when a job started with an automatic trigger failed, it is not possible to restart it manually even if the icon is present : There is an NPE 


I fixed this NPE so it is now possible to restart it.