TEZ-248. 0 number of tasks causes Arithmetic exception. (hitesh)