Correct a bug in has_untracked.