Fixed a crash when it wanted to send the message via pm