gossip: prevent fail if application_msg_handler was not set
list: fix remove_item function (hopefully)