Prevent new navigations during document unload