Adjust isfinite check towards old form to fix Android and NaCl builds.