Replace call to deprecated finite function with C99's isfinit.