check task field more finely
Merge pull request #5428 from ticoann/1.0.0_wmagent

check task field more finely