Add Error when NaNs are created during calculation

@eraviart : Je te laisse valider