Fixed crash when message does not contain sender or recipient