WICKET-5665 WicketTester#assertComponentOnAjaxResponse() cannot test invisible components

(cherry picked from commit b25171c2ab17af6a6955d45f702daaabc396d8f1)