[FIXED JENKINS-17025] NPE when checking if the executor is interrupted

29426012ce introduced an NPE.
If a build's project implements Queue.FlyweightTask, build.getExecutor() returns null.
This prevents any flyweight build from finishing successfully.