Fix undefined check (https://github.com/disnet/contracts.js/pull/26/files#r22499818)
Fix undefined check (https://github.com/disnet/contracts.js/pull/26/files#r22499818)

disnet/contracts.js,disnet/contracts.js