fix the missing return for `_NAN_THROW_ERROR`

I found there are 2 places for `_NAN_THROW_ERROR`, we should make sure the consistence for them, just returned the `ThrowException()`'s value for all.