corrected halofind.f90 loop error (added logical valid_halo)