jashkenas/backbone — pull request #3020 by lautis (2014-02-24 23:19:23+00:00)
Title: 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.