Slight improvement to GPU kernel 15

In cases where the loop is guaranteed not to encounter values outside
the valid range, no checking for validity is required.