WICKET-5639 ResourceResponse does not write headers when status code is set