Fix cppcheck warning. Refs #9232