convert NAN to nil when returning previous timeout value from :settimeout