Fix to make preload for external dataset agent idempotent /master