cover null case for belongsTo relationship
Merge pull request #564 from jefflab/null-belongsTo

cover null case for belongsTo relationship