WICKET-5135: give more detailed error message, rather than NPE