carminefb: fix possible access beyond end of carmine_modedb[]