Bitbucket issue #301 : replace Number.isNaN by isNaN