GEOS-5766 - MonitorInputStream ignores maxSize

(cherry picked from commit e3661748e09a02c24e3755e901c24be1bc22f8fb)

Conflicts:

	src/extension/monitor/core/src/test/java/org/geoserver/monitor/MonitorServletRequestTest.java