FULLPIPE: Fix off-by-one error when checking valid 'idx'

Verified by sev, but I haven't actually seen it cause any problems.