Is it really valid to test that a ERL_NIF_TERM is non-zero?