WICKET-5578 Stateless/Statefull pages - incorrect behaviour