Fix index error in vector access.

This was discovered by the windows debug build.
Refs #9643