Fix safe-guard for last-insertion tracker.