Check that model exists before trying to verify uniqueness

When calling fetch with {add: false} and model does not exist in
collection, model uniqueness check tries to access id of undefined. This
verifies that model is set before checking for existing models.
Tweak and merge.