WICKET-5371 IllegalArgumentException: Argument 'page' may not be null. - when sending event from asynchronous process

Mark the page as dirty to keep it around in case there is no other usage with it (component added/removed/etc.)

(cherry picked from commit d817855dda158f4c376042f236da5f19223a8823)