Fixed Regression: 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.