Fix error while saving related model without file
Merge pull request #217 from CauanCabral/master

Fix error while saving related model without file