powmedia/backbone-deep-model — pull request #12 by tgriesser (2012-05-23 12:27:00+00:00)
Title: Check if the child object exists, but isn't an object

If I have a model like this:

```javascript
{
name : 'test user'
attributes : ''
}
```

and I try to do `person.set('attributes', { 'k1' : 'v1', 'k2' : 'v2' })`

It won't work because attributes isn't `undefined` but also isn't an object. I updated it to check if the current object is either undefined or not an object to give the placeholder object container.