index: guard mutation result auto-insert-id

Fixes #15