LPS-39221 don't throw exception on Weblogic, as it calls setBufferSize on PageContext creation
LPS-39221 test added
LPS-39221 Consolidate logic