Fix NULL pointer deref when there is no message data whatsoever