opj_j2k_check_poc_val(): fix starting index for checking layer dimension