when creating a model, that has an association, if the association attribute is assigned [null] , it breaks waterline. Added check for null.