I worked through this problem. It ends up that I have to move my
code to the ItemUpdated event because the new changes to the task
were not saved in the ItemUpdating event. I was trying to use
properties.AfterProperties.ChangedProperties to access what has
changed. When I used ItemUpdated the changes were already saved in
the Content Database and accessible.
Also, a side note that when using ItemUpdating or ItemUpdated the
properties.AfterProperties.ChangedProperties or the
properties.BeforeProperties.ChangedProperties collections are
sometimes empty when there are changes. Here is the msdn link to the
bug: http://msdn2.microsoft.com/en-
us/library/microsoft.sharepoint.spitemeventdatacollection.changedprop
erties.aspx