Fix broken afterLoadPreviousDomain callback