o Fix a bug when adding a message with empty flags. Closes: #4496