BZ-1081525: null check for getting all the comments associated with a task