Add overflow check in opj_tcd_init_tile (#819)