Improved NaN filtering for DNI