Fix out of memory problem produced by XMLLightweightParser
XMLLightweightParser will store in a buffer content of stanzas that are not complete. This includes heartbeats. Clients sending heartbeats for a long time will consume a big amount of memory and may end up consuming all the memory of the server.
Detect when the buffer just contains white spaces and proceed to empty the buffer.
Moving to 3.3.2