Unregister the callback when the list is emptied