Fixes issue where setting a relation to null will try to populate the join table with null (belongsToMany)