Don't segfault if an empty codebook gets used.