Fix parseRequest buffer bug

Fixed a bug where the buffer wasn’t big enough to contain everything
received from the server. Even the largest data string should be parsed
now.
Fix crash

Fixed a crashed cause bu a channel to be set as null. Should
investigate more to really understand more why the channel would be
null.