fix receivebody to return null on null message
Merge pull request #1164 from andytaylor/master

receivebody check for null