fix validation when update a task

Summary: http://mantis.monits.com/view.php?id=3214

Test Plan: test on device

Reviewers: jmsotuyo

Reviewed By: jmsotuyo

Subscribers: jmsotuyo

Differential Revision: http://ph.monits.com/D5258