sophia index: fix for 'crash if insert without index'.

closes #gh-280.