Fix find with NaN id in base-sql