fix crash when create a task from dailywork

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

Test Plan: test on device

Reviewers: jmsotuyo

Reviewed By: jmsotuyo

Subscribers: jmsotuyo

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