LearnBoost/mongoose — pull request #859 by achurkin (2012-04-24 13:23:58+00:00)
Title: Added additional check when creating object from model with emded object...

Fix for error when loading model with emded document.

For example if we have such schema
```js
var UserSchema = new Schema({
user_id: Number,
location: {
city: {type: String, 'default': 'New York'},
country: {type: String, 'default': 'USA'}
}
})
```
and we will load document from database with such data

```js
{
user_id: 10,
location: {city: "Washington"}
}
```

we will got broken object. When we will try to get country of such user we will get undefined value.