phonemes: fix a segfault when there are no phoneme entries