Protects the dereferences of the struct mailmessage *myMessage.

All the dereferences of the struct mailmessage *myMessage are protected by checking the value of myMessage.