Protect against case where a build could not be scheduled

It is possible that job.scheduleBuild2 can return null if the Queue already has an item for this Task. This protects against a possible NPE.