Making Jsp tests work on JDK's less than 7
400040 - NullPointerException in HttpGenerator.prepareBuffers

+ Adding safety check on _header use