Fix beforeunload blocker.