bug fix: now check if ReceivedMessage event is null before calling
bug fix: now check if ReceivedMessage event is null before calling

tempbottle/NNanomsg,mhowlett/NNanomsg,mhowlett/NNanomsg,tempbottle/NNanomsg