opj_j2k_setup_encoder(): validate number of tiles to avoid illegal values and potenti...