fix model belongs to a null when it should be undefined
Merge pull request #461 from clarkorz/fix-belongs-to-null

fix model belongs to a null when it should be undefined