Fix indexing of empty tupletables