When merging instead of segfaulting when there is no index, return an error.  Need to think of better ways to handle this.