reproduces https://issues.apache.org/jira/browse/WICKET-5663