Fix issue #78 and add a test case for a NULL message response from server