Fix serialize models with subset of attributes

The following code raises an `ActiveModel::MissingAttributeError`:
```
Person.only("_id", "username").first.as_json
```

This PR fixes it.