Avoid NullPointerException in the executors.