Fixed error when updating a task (missing _id)