Fix strtod overflow detection (bug 23279).