Fixed some null pointers passed to TList::Add.