HADOOP-5440. Fixes a problem to do with removing a taskId from the list of taskIds that the TaskTracker's TaskMemoryManager manages. Contributed by Amareshwari Sriramadasu.