update JZlibEncoder to cater for zero length input. this caused a test...

... case to error out

  with Z_BUF_ERROR (-5). was not able to reproduce this using either HttpContentCompressorTest or
  JZlibTest. see also #3070 for an example stack trace and context.