Hopefully the fewer conditional checking, will make things more efficent
This was not commited (doh)
Prevent a possible NPE
Slight code reduction as well as performance improvements for the TaskExecutorDistributor
Merge branch 'TaskSchedulerDistributor-more_efficent_scheduling' into TaskExecutorDistributor-getTaskQueueCount