unlinkInverse: avoid splicing when index is undefined

When I delete a resource, angular-data is also removing references to/from unrelated resources during `_unlinkInverse`.  In these cases, `index` was undefined, which is effectively treated as `0` by splice and would remove an unrelated item.