Add checks for nans in input catalogs