Allow creation of an empty index

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>