don't try to calculate with NaN
don't make invalid ranges valid
Merge pull request #1 from v4hn/hydro_devel_fixes

improve handling of invalid range values