Fix bug for Models with different idAttributes returned from Collection#model function

Yep, probably. Want to open a pull?