avoid splicing when index is undefined
Merge pull request #190 from chieffancypants/unlinkInverse-bug

unlinkInverse: avoid splicing when index is undefined
Added a test.
Fixes #191.

Stable Version 1.0.0-rc.2-1.