Fix error callback triggered with wrong parameters

Backbone.js by default wraps error callback with a wrapError function and expects an xhr object as parameter. This fixes the same by passing xhr to error callback instead of the collection object.
Merge pull request #217 from bharathwaaj/patch-1

Fix error callback triggered with wrong parameters