Fix crash in stale check when prune config is incomplete