UNDERTOW-300 Fix IndexOutOfBoundsException in ServletPrintWriter