Fix minor cppcheck warning

Refs #10410