fix infinity check so that Closure Compiler does not choke on it