Fixed bug if empty message library was saved in pickle.