Fixes recursive loop if model attributes contain nested models

I.e. nested models created from the backbone-relational plugin