jpeg2000: Check component number in get_coc() and get_qcc()