Finds a task by its id.
DayPilot.Gantt.tasks.find(id);
Note: The id is converted to string using .toString() and then compared using ===.
DayPilot.Task object if the task is found, otherwise null.