Fix another use of std::isfinite that broke the Windows builds.