Fixed bug creating empty string index item (rather than empty index) on deleting the last indexed item