validate color palette channel index in opj_jp2_apply_pclr (fixes 451.pdf.SIGSEGV.f4c.3723)

TODO: there might be a better place to validate this number, however AFAICT in opj_jp2_read_cmap the number of image components isn't available yet
Merge branch 'fixes' into sumatrapdf