Fixed validation failure on item arrays.

The hasItem flag was being reset every iteration, which would cause
checks on item arrays to fail if the character did not have the last
item in the array.