Fix missing variable bug when exercise content is nil.
One user could only create one task at one day.