WICKET-5643 storeBufferedResponse should check if session is temporary.

Code changed as suggested by Martin