WICKET-5424 make sure no page instance is created in redirect
WICKET-5402 NullPointerException when logging out with wicket-atmosphere

(cherry picked from commit fed60b1cb4f43f6915ccb87e5b674b4a0c094ec5)