TRUNK-4464: java.lang.NullPointerException when starting a scheduled task