Updated ToDo to handle nil Tasks.

Need to properly check for the optional representing a nil value.