Fix set auto-load safe-path false warning regression (PR 16216)