Updated setMessageReadState to print a warning when the message couldn't be found