Fix of NPE during NoWait argument of task calculation