Fixes #3028 assign collection in prepareModel

Also removes model.collection in cases of failure
with wait:true. Presumably, attempting to add a model to a
collection shouldn't set the "collection" attribute
on a model if it's not actually added.