Fix issue with flush() on the undertow output stream