Fix empty message if read buffer ends with mesasge type char