Fixed ava.lang.NegativeArraySizeException at org.apache.commons.io.output.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:324