nil safety for resource_id
Merge pull request #80 from demandchain/zh-nil-address-safety

Nil safe belongs_to assocations