Fixing a possible dangling pointer in CCTableView callbacks.